﻿<%@ Page Language="C#" MasterPageFile="~/Site.master" CodeBehind="Default.aspx.cs" Inherits="Pap.Historical.Web._Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server" />

<div id="tabs" style="direction:rtl">
    <ul>
		<li><a href="#tabs-1">القروض المنتهية</a></li>
		<li><a href="#tabs-2">القروض الحالية</a></li>
	</ul>
	<div id="tabs-1">
	<h2>القائمة</h2>
        <asp:GridView ID="Menu1" runat="server" AutoGenerateColumns="false"
        CssClass="gridview" AlternatingRowStyle-CssClass="even" ShowFooter="true">
        <Columns>
            <asp:TemplateField HeaderText="القائمة" HeaderStyle-HorizontalAlign="Center" SortExpression="TableName" ItemStyle-Width="10%">
                <ItemTemplate>
                    <%#Eval("DisplayName") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ListActionPath") %>'>List</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%">
             <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#((MetaTable)Container.DataItem).GetActionPath(PageAction.Insert)%>'><%# PageAction.Insert %></asp:HyperLink>                    
                </ItemTemplate>
                
            </asp:TemplateField>
        </Columns>
        </asp:GridView>
	
	</div>
	<div id="tabs-2">
	    <h2>قائمة القروض الغير منتهية</h2>
	    <asp:GridView ID="Menu2" runat="server" AutoGenerateColumns="false"
        CssClass="gridview" AlternatingRowStyle-CssClass="even" ShowFooter="true">
        <Columns>
            <asp:TemplateField HeaderText="القائمة" HeaderStyle-HorizontalAlign="Center" SortExpression="TableName" ItemStyle-Width="10%">
                <ItemTemplate>
                    <%#Eval("DisplayName") %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%">
                <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ListActionPath") %>'>List</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="10%">
             <ItemTemplate>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#((MetaTable)Container.DataItem).GetActionPath(PageAction.Insert)%>'><%# PageAction.Insert %></asp:HyperLink>                    
                </ItemTemplate>
                
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
	
	</div>
</div>
    <script type="text/javascript">
    $(function() {
        $("#tabs").tabs();
    });
</script>
</asp:Content>


